package vn.sunnet.backviet01.game.coloa.constant;

import java.util.Random;

public class Constants {
	/*Bảng giá đồ
	 * */
	public static final int PRICE_SKILL_POINT = 7000;
	public static final int PRICE_BASIC_POINT = 2000;
	public static final int PRICE_REMOVE_SKILL = 5000;
	
	public static Random rand = new Random();
	
	
	public static final int EQUIPMENT = 99;
	public static final int MAINGAME = 98;

	public static final int ONE_ARROW = 1;
	public static final int TWO_ARROW = 2;
	public static final int THREE_ARROW = 3;

	public static final int EFFECT_FIRE = 0;
	public static final int EFFECT_ICE = 1;
	public static final int EFFECT_TREE = 2;

	public static final int SKILL_HOA_TIEN = 0;
	public static final int SKILL_LIEU_NGUYEN_HOA = 1;
	public static final int SKILL_HAN_BANG_TIEN = 2;
	public static final int SKILL_BANG_HA = 3;
	public static final int SKILL_MOC_TIEN = 4;
	public static final int SKILL_DAI_MOC_TRAN = 5;
	public static final int SKILL_HUYEN_THIET_TIEN = 6;
	public static final int SKILL_LOI_QUANG_DIEN = 7;
	public static final int SKILL_THO_TIEN = 8;
	public static final int SKILL_TOA_DIA_CHAN = 9;
	
	public static final int STAGE_BOSS_FLAT_DRAGON_1 = 59;
	public static final int STAGE_BOSS_FLAT_DRAGON_2 = 69;
	
	public static final int STAGE_BOSS_DOTHU_1 = 29;
	public static final int STAGE_BOSS_DOTHU_2 = 39;

	public static final int STAGE_BOSS_NHAMNGAO_1 = 9;
	public static final int STAGE_BOSS_NHAMNGAO_2 = 19;
	
	public static final int STAGE_BOSS_1 = 49;
	public static final int STAGE_BOSS_2 = 79;
	public static final int STAGE_BOSS_3 = 89;
	public static final int STAGE_BOSS_4 = 99;

	public static enum GameStates {
		GAME_MENU(0), GAME_SELECT_ACCOUNT(1), GAME_SHOP(2), GAME_PLAY(3), GAME_PAUSE(
				3), GAME_OVER(3), GAME_WIN(3), GAME_NORMAL(-1), GAME_BUY_SNAIL(2), GAME_END_OF_START(3);

		private final int value;
		
		GameStates(int i) {
			value = i;
		}

		public int getValue() {
			return value;
		}

	}

	public static final String GENERAL_NAME[] = {"Dịch Hu Tống", "Cao Lỗ", "An Dương Vương", "Thần Kim Quy"};
	
	public static final int ITEM_NO = 1;

	public static final int ITEM_AOGIAP = 2;

	public static final int ITEM_MU = 3;

	public static final int ITEM_GIAPTAY = 4;

	public static final int TOTAL_ITEM = 14;
	public static final int TOTAL_SKILL = 10;

	public static final long TIME_RECALL = 1000;

	public static final int ACCOUNT_01 = 0;
	public static final int ACCOUNT_02 = 1;
	public static final int ACCOUNT_03 = 2;

	public static final int ACCOUNT_01_ICON = 3;
	public static final int ACCOUNT_02_ICON = 4;
	public static final int ACCOUNT_03_ICON = 5;

	public static final int PLAY_MENU = 11;
	public static final int INFO = 13;
	public static final int SHARE = 14;
	public static final int MORE = 15;
	public static final int EXIT = 16;

	public static final int TOTAL_GENERAL = 4;

	public static final float CAMERA_HEIGHT = 480;
	public static final float CAMERA_WIDTH = 800;

	public static final byte DICHHUTONG = 0;
	public static final byte CAOLO = 1;
	public static final byte ANDUONGVUONG = 2;
	public static final byte KIMQUY = 3;

	public static final byte MELEE = 1;
	public static final byte RANGE = 2;
	public static final byte TANK = 3;
	public static final byte AURRA = 4;
	public static final byte SPELL = 5;
	public static final byte NHAMNGAO = 6;
	public static final byte TRIEUDA = 7;
	public static final byte DOTHU = 8;
	public static final byte SULOC = 9;
	public static final byte TANVUONG = 10;
	public static final byte FLAT_DRAGON = 13;
	public static final byte FLYING_DRAGON = 14;
	public static final byte BACLONG = 11;
	public static final byte COOLDOWNTURN = 12;

	public static final byte MOVE = 1;
	public static final byte ATTACK = 2;
	public static final byte DIE = 3;

	public static final byte STRENG = 1;
	public static final byte AGILITY = 2;
	public static final byte INTLLIGENT = 3;

	/*
	 * Position
	 */
	
	public static final float Y_FIRST_LINE = 30;
	public static final float Y_SECOND_LINE = 100;
	public static final float Y_THIRD_LINE = 170;
	public static final float Y_FOURTH_LINE = 240;
	public static final float Y_FIVETH_LINE = 310;

	public static final float Y_LINE_RIGHT = -70;
	public static final float Y_LINE_LEFT = 70;

	public static final float Y_BIAS = 80;
	public static final float X_BIAS = 40;

	public static final float VELOCITY_RANGE_DEFAULT = 50;
	public static final float VELOCITY_MELEE_DEFAULT = 70;
	public static final float VELOCITY_AURRA_DEFAULT = 55;
	public static final float VELOCITY_SPELL_DEFAULT = 65;
	public static final float VELOCITY_TANK_DEFAULT = 75;
	public static final float VELOCITY_FLAT_DRAGON_DEFAULT = 135;
	public static final float VELOCITY_TAN_VUONG_DEFAULT = 100;
	public static final float VELOCITY_DOTHU_DEFAULT = 140;
	public static final float VELOCITY_NHAMNGAO_DEFAULT = 145;

	/*
	 * attack - enemy
	 */

	public static final float ATTACK_RANGE_DEFAULT = 7;
	public static final float ATTACK_MELEE_DEFAULT = 9;
	public static final float ATTACK_SPELL_DEFAULT = 10;
	public static final float ATTACK_TANK_DEFAULT = 15;

	public static final float ATTACK_AURRA_DEFAULT = 3;
	
	/*
	 * duration
	 */
	
	public static final float DURATION_MELEE_MOVE = 80;
	public static final float DURATION_MELEE_ATTACK = 150;
	public static final float DURATION_MELEE_DIE = 250;

	public static final float DURATION_RANGE_MOVE = 100;
	public static final float DURATION_RANGE_ATTACK = 120;
	public static final float DURATION_RANGE_DIE = 250;

	public static final float DURATION_SPELL_MOVE = 100;
	public static final float DURATION_SPELL_ATTACK = 200;
	public static final float DURATION_SPELL_DIE = 100;

	public static final float DURATION_TANK_MOVE = 100;
	public static final float DURATION_TANK_ATTACK = 130;
	public static final float DURATION_TANK_DIE = 250;
	
	/*
	 * hp - enemy
	 */

	public static final float HP_RANGE_DEFAULT = 65;
	public static final float HP_MELEE_DEFAULT = 55;
	public static final float HP_AURRA_DEFAULT = 130;
	public static final float HP_TANK_DEFAULT = 120;
	public static final float HP_SPELL_DEFAULT = 110;

	public static final float ARMOUR_RANGE_DEFAULT = 2;
	public static final float ARMOUR_MELEE_DEFAULT = 4;
	public static final float ARMOUR_TANK_DEFAULT = 8;
	public static final float ARMOUR_AURRA_DEFAULT = 10;
	public static final float ARMOUR_SPELL_DEFAULT = 2;
	
	public static final float EXP_MELEE_DEFAULT = 2;
	public static final float EXP_RANGE_DEFAULT = 3.75f;
	public static final float EXP_SPELL_DEFAULT = 5;
	public static final float EXP_TANK_DEFAULT = 7;
	public static final float EXP_AURRA_DEFAULT = 10;
	
	public static final float EXP_BOSS_NHAMNGAO = 400;
	public static final float EXP_BOSS_DOTHU = 600;
	public static final float EXP_BOSS_FLAT_DRAGON = 1000;

	public static final byte PLAY = 1;
	public static final byte PAUSE = 2;
	public static final byte WIN = 3;
	public static final byte GAME_OVER = 4;
	public static final byte READY = 5;
	public static final byte UNREADY = 6;
	public static final float TAN2_ALPHA = 0.03F;
	public static final float TAN3_ALPHA = 0.06F;
	public static final float TAN4_ALPHA = 0.1F;

	public static final float XPOS_ATTACK_MELEE = 120;
	public static final float XPOS_ATTACK_RANGE = 532;
	public static final float XPOS_ATTACK_SPELL = 320;
	public static final float XPOS_ATTACK_TANK = 130;
	public static final float XPOS_STAND_AURRA = 500;
	public static final float XPOS_ATTACKABLE_AURRA = 600;

	public static final float XPOS_BEAT_FLATDRAGON = 110;
	public static final float XPOS_FIRE_FLATDRAGON = 500;
	public static final float XPOS_FIRE_FLYINGDRAGON = 500;

	public static final float XPOS_ATTACK_TANNHITHE = 550;
	public static final float XPOS_ATTACK_DOTHU = 350;

	public static final float XPOS_ATTACK_NHAMNGAO = 130;

	public static final int ENEMY_DIE_TILE_INDEX = 7;
	public static final int SPELL_DIE_TILE_INDEX = 19;
	public static final int AURRA_DIE_TILE_INDEX = 5;

	public static final float COEFFICIENT = CAMERA_WIDTH;
	public static final float DELAY_FACTOR = 4.5f;
	
	public static final int PLUS_LINE = 0;
	public static final int PLUS_SOLDIERS = 4;
	public static final int PLUS_BIAS_LEFT = 1;
	public static final int PLUS_BIAS_RIGHT = 2;
	public static final int PLUS_CENTER = 3;

	public static final int[] PLUS = { PLUS_LINE,
			PLUS_BIAS_LEFT, PLUS_BIAS_RIGHT, PLUS_CENTER, PLUS_SOLDIERS
	};
	
	//==================//
	//General Index Default
	//==================//
	
	/*
	 * NHAM NGAO
	 */
	
	public static final int NHAM_NGAO_STRENG = 65;
	public static final int NHAM_NGAO_AGILITY = 31;
	public static final int NHAM_NGAO_INTEL = 21;
	public static final int NHAM_NGAO_EXP = 120;
	
	/*
	 * DO THU
	 */
	
	public static final int DO_THU_STRENG = 85;
	public static final int DO_THU_AGILITY = 45;
	public static final int DO_THU_INTEL = 90;
	public static final int DO_THU_EXP = 120;
	
	/*
	 * FLAT DRAGON
	 */
	public static final int FLAT_DRAGON_STRENG = 150;
	public static final int FLAT_DRAGON_AGILITY = 100;
	public static final int FLAT_DRAGON_INTEL = 100;
	public static final int FLAT_DRAGON_EXP = 120;
	
}
